<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>业户回访 列表</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/global.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>

<script type="text/javascript">
	function resize(){
		parent.window.document.all('ownersVisitListIfm').style.height=document.body.scrollHeight;
	}

	function setOwnersVisitId(ownersWisitId){
		parent.ownersWisitId = ownersWisitId ;
	}

	function init(){
		resize();
		parent.ownersWisitId=""
		parent.cur_p='${ec_p}';
	}


</script>
</head>

<body  onload="init();">

<div style="overflow:auto;">
	<ec:ceTable items="ownerVisitList"
				autoIncludeParameters="true"
				var="item"
				action="${ctx}/customerService_ownersVisitAction.do?method=queryOwnerVisitList"
				rowsDisplayed="15"
				width="100%"
				view="pmsview"
				sortable="false"
				styleClass="gridData"
	>
		<ec:ceRow styleClass="grid" ondblclick="parent.detail(${item.keyword});" onclick="setOwnersVisitId(${item.keyword});"  onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
			<ec:ceColumn width="20%"  property="houseNumber" headerCell="pmsHeadrCell"  title="房 号"/>
			<ec:ceColumn width="20%"  property="owners" headerCell="pmsHeadrCell"  title="业户姓名"/>
			<ec:ceColumn width="20%"  property="visitTime" headerCell="pmsHeadrCell" title="访问时间" ><fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${item.visitTime}"/></ec:ceColumn>
			<ec:ceColumn width="20%"  property="mode" headerCell="pmsHeadrCell" title="访问方式"/>
			<ec:ceColumn width="20%"  property="recorder" headerCell="pmsHeadrCell"  title="记录人"></ec:ceColumn>
		</ec:ceRow>
	</ec:ceTable>

</div>

<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu')"  onMouseOut="hidden2menu('quick_rightmenu')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td>
      <table width="100%" border="0" cellpadding="2" cellspacing="0">
      <pms:AuthTag authName="customerService_ownersVisitAction.do?method=addPage">
        <tr><td class="quickMenu_toolbarico"><a href="#" onClick="parent.openAdd();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" alt="新 增" width="16" height="16" border="0" align="absbottom"/>新 增</a></td></tr>
		</pms:AuthTag>
		<pms:AuthTag authName="customerService_ownersVisitAction.do?method=editPage">
		<tr><td class="quickMenu_toolbarico"><a href="#" onClick="parent.openEdit();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" alt="修 改" width="16" height="16" border="0" align="absbottom" />修 改</a></td></tr>
        </pms:AuthTag>
        <pms:AuthTag authName="customerService_ownersVisitAction.do?method=delete">
        <tr><td class="quickMenu_toolbarico"><a href="#" onClick="parent.deleteCheck();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删 除" width="16" height="16" border="0" align="absbottom" />删 除</a></td></tr>
	  </pms:AuthTag>
	  </table>
	</td>
    </tr>
  </table>
<script type="text/javascript">

	var ownersVisitdiv=document.getElementById('quick_rightmenu');
	if(ownersVisitdiv.getElementsByTagName("tr").length==1){
	ownersVisitdiv.innerHTML="";
	}
</script>
</div>

</body>
</html>
